/* Alignment markers.
 *
 * Copyright (c) 1993-2007 Leo Spiekman, Xaveer Leijtens
 *
 * This file is part of libMask.
 *
 * libMask is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * libMask is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with libMask.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "mask.h"

void marker1() {
  push_cp();

  org(0.0,-75e-6,0.0,NOFLIP);
  rect(150e-6,10e-6,2,2);
  org(0.0,75e-6,0.0,NOFLIP);
  rect(150e-6,10e-6,8,8);
  org(-75e-6,-65e-6,0.0,NOFLIP);
  rect(10e-6,10e-6,1,1);
  org(75e-6,-65e-6,0.0,NOFLIP);
  rect(10e-6,10e-6,3,3);
  org(-75e-6,65e-6,0.0,NOFLIP);
  rect(10e-6,10e-6,7,7);
  org(75e-6,65e-6,0.0,NOFLIP);
  rect(10e-6,10e-6,9,9);

  org(-35e-6,35e-6,0.0,NOFLIP);
  rect(35e-6,5e-6,5,5);
  rotate(RAD(90));
  rect(35e-6,5e-6,5,5);
  org(35e-6,35e-6,0.0,NOFLIP);
  rect(35e-6,5e-6,5,5);
  rotate(RAD(90));
  rect(35e-6,5e-6,5,5);
  org(-35e-6,-35e-6,0.0,NOFLIP);
  rect(37e-6,7e-6,5,5);
  rotate(RAD(90));
  rect(37e-6,7e-6,5,5);
  org(35e-6,-35e-6,0.0,NOFLIP);
  rect(37e-6,7e-6,5,5);
  rotate(RAD(90));
  rect(37e-6,7e-6,5,5);

  pop_cp();
}

void marker2() {
  push_cp();

  org(-5e-6,-75e-6,0.0,NOFLIP);
  rect(50e-6,21e-6,3,3);
  org(-5e-6,-55e-6,RAD(90),NOFLIP);
  rect(16e-6,26e-6,1,3);
  rect(8e-6,11e-6,1,3);
  rect(15e-6,26e-6,1,3);
  rect(31e-6,70e-6,1,3);
  rect(15e-6,25e-6,1,3);
  rect(10e-6,10e-6,1,3);
  rect(15e-6,25e-6,1,3);
  rect(20e-6,50e-6,1,3);
  org(-75e-6,-55e-6,RAD(90),NOFLIP);
  rect(16e-6,36e-6,7,9);
  rect(8e-6,21e-6,7,9);
  rect(15e-6,36e-6,7,9);
  skip(31e-6);
  rect(15e-6,35e-6,7,9);
  rect(10e-6,20e-6,7,9);
  rect(15e-6,35e-6,7,9);

  org(75e-6,-75e-6,0.0,NOFLIP);
  rect(20e-6,20e-6,3,3);
  org(75e-6,75e-6,0e-6,NOFLIP);
  rect(20e-6,20e-6,9,9);

  org(35e-6,-35e-6,0.0,NOFLIP);
  rect(38e-6,8e-6,5,5);
  rotate(RAD(90));
  rect(38e-6,8e-6,5,5);
  org(35e-6,35e-6,0.0,NOFLIP);
  rect(40e-6,10e-6,5,5);
  rotate(RAD(90));
  rect(40e-6,10e-6,5,5);

  pop_cp();
}
